/// <reference path="../../Scripts/jquery/jquery-1.4.1-vsdoc.js" />
$(function() {
    $('.posticon').click(function() {
        var imgName = $(this).children('input:hidden').val();
        var img = $(this).children('img');
        $('a[rel=posticon]>input:hidden').val(imgName);
        $('.posticonselect img').replaceWith(img.clone());
        $find('postIconPopup').hidePopup();
    });
});